#pragma once

namespace SkinableGUI
{
	class CSkinableGUIBitmapDC : public CDC
	{
	public:
		CSkinableGUIBitmapDC(CDC * pDC, CBitmap * pBitmap)
		{
			CreateCompatibleDC(pDC);

			m_pOldBitmap = SelectObject(pBitmap);
		}

		virtual ~CSkinableGUIBitmapDC()
		{
			SelectObject(m_pOldBitmap);
		}

	private:
		CBitmap * m_pOldBitmap;
	};
};
